/*
 * motors.h
 * Copyright (c) 2013 Maris BECS. All rights reserved.
 */ 

#include <asf.h>
#include "main.h"
//#include "conf_clock.h"


#ifndef MOTORS_H_
#define MOTORS_H_

//TODO: explore this!
/* The 6 PWM config structs */
struct pwm_config pwm_cfg[6];

extern void motors_init(void);

extern void drive(int8_t left_pwm, int8_t right_pwm);
extern void stop_motors(void);
extern void turn_servo(bool dir);

#endif /* MOTORS_H_ */